package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.StartStopStateMapper;
import com.ruoyi.system.domain.StartStopState;
import com.ruoyi.system.service.IStartStopStateService;

/**
 * 启停机状态Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-11-22
 */
@Service
public class StartStopStateServiceImpl implements IStartStopStateService 
{
    @Autowired
    private StartStopStateMapper startStopStateMapper;

    /**
     * 查询启停机状态
     * 
     * @param id 启停机状态主键
     * @return 启停机状态
     */
    @Override
    public StartStopState selectStartStopStateById(Integer id)
    {
        return startStopStateMapper.selectStartStopStateById(id);
    }

    /**
     * 查询启停机状态列表
     * 
     * @param startStopState 启停机状态
     * @return 启停机状态
     */
    @Override
    public List<StartStopState> selectStartStopStateList(StartStopState startStopState)
    {
        return startStopStateMapper.selectStartStopStateList(startStopState);
    }

    /**
     * 新增启停机状态
     * 
     * @param startStopState 启停机状态
     * @return 结果
     */
    @Override
    public int insertStartStopState(StartStopState startStopState)
    {
        return startStopStateMapper.insertStartStopState(startStopState);
    }

    /**
     * 修改启停机状态
     * 
     * @param startStopState 启停机状态
     * @return 结果
     */
    @Override
    public int updateStartStopState(StartStopState startStopState)
    {
        return startStopStateMapper.updateStartStopState(startStopState);
    }

    /**
     * 批量删除启停机状态
     * 
     * @param ids 需要删除的启停机状态主键
     * @return 结果
     */
    @Override
    public int deleteStartStopStateByIds(Integer[] ids)
    {
        return startStopStateMapper.deleteStartStopStateByIds(ids);
    }

    /**
     * 删除启停机状态信息
     * 
     * @param id 启停机状态主键
     * @return 结果
     */
    @Override
    public int deleteStartStopStateById(Integer id)
    {
        return startStopStateMapper.deleteStartStopStateById(id);
    }
}
